package com.dpj.seckill.config;

import com.dpj.seckill.pojo.TUser;

public class UserContext {
    private static ThreadLocal<TUser> userHolder=new ThreadLocal<>();


    public static void setUser(TUser user){
        userHolder.set(user);
    }
    public static TUser getUser(){
        return userHolder.get();
    }
}
